﻿@model dynamic
<div class="tabbable">
    <ul class="nav nav-tabs">
        @if (ViewBag.User.Permissions.Contains("ReadComment"))
        {
            <li class="active"><a href="#comments_tab" data-toggle="tab">Comments</a></li>
        }
        @if (ViewBag.User.Permissions.Contains("ReadComment"))
        {
            // TODO: Change to ReadReview when reviews are implemented
            <li><a href="#reviews_tab" data-toggle="tab">Reviews</a></li>
        }
    </ul>
    <div class="tab-content">
        <div class="tab-pane active" id="comments_tab">
            @Html.Partial("_Comments")
        </div>
        <div class="tab-pane" id="reviews_tab">
            @Html.Partial("_Reviews")
        </div>
    </div>
</div>